# 快速测试语音播放
# 使用Windows TTS直接播报

Write-Host "=== 测试语音播放 ===" -ForegroundColor Green
Write-Host ""

# 加载语音合成
Add-Type -AssemblyName System.Speech
$speak = New-Object System.Speech.Synthesis.SpeechSynthesizer
$speak.Rate = 0
$speak.Volume = 100

# 测试1
Write-Host "测试1：播放 '签到成功'" -ForegroundColor Yellow
$speak.Speak("签到成功")
Start-Sleep -Seconds 1

# 测试2
Write-Host "测试2：播放 '结束签到'" -ForegroundColor Yellow
$speak.Speak("结束签到")

Write-Host ""
Write-Host "=== 测试完成 ===" -ForegroundColor Green
Write-Host ""
Write-Host "如果听到了语音，说明功能正常！" -ForegroundColor Cyan
Write-Host "现在可以进行实际签到测试了。" -ForegroundColor Cyan

$speak.Dispose()

